﻿using System;
using UnityEngine;

public class ButterflyBehaviours : BaseBehaviour
{
    protected override void start()
    {        
        addBehaviour(typeof(ButterflyCollisionBehaviour));
        addBehaviour(typeof(ButterflyInputBehaviour));
        addBehaviour(typeof(ButterflyMoveBehaviour));
        addBehaviour(typeof(ButterflyFreezeBehaviour));        
    }

    private void addBehaviour(Type behaviour)
    {
        gameObject.AddComponent(behaviour);
    }
}
